write to driver
Type
command
Summary
Sends data to a device that has been opened with the open driver command.
Syntax
write <value> to driver <deviceName>
Description
Use the write to driver command to control a peripheral device or send data through it.
Parameters
Name | Type | Description |
---|---|---|
value | string | |
deviceName | The name of a device driver that's installed on the system and that you have previously opened with the open driver command. |
Examples
write "test" & return to driver "/dev/cu.modem"
Value
Name | Type | Description |
---|---|---|
the result | The device to write to must be opened first with the open driver command, and the mode the device was opened in must be either write or update. If the device is not open or is open read-only, the result function is set to "File is not open for write.". |
Related
control structure: function
function: driverNames, result
glossary: command, peripheral device
keyword: COMn:, real8, int1, int4, real4, int2, LPT1:, printer:, modem:
command: write to file, open driver, close driver, read from driver, write to process, write to socket
Compatibility and Support
Introduced
LiveCode 1.1.1
OS
mac
windows
linux
Platforms
desktop
server